/**
 * Created by bibei on 2016/12/20.
 */



function editAgentInfo(agentId) {
    window.location.href = URL_BASE+'/manage/agentInfo/queryAgentInfoPage?menuType=50&menuId=501020&agentId=' + agentId;
}

function resetPwd(sysAccount) {
    debugger;
    $.messager.confirm("操作提示", "您确定要执行此操作吗！", function (data) {
        if (data) {
            var url = URL_BASE + '/manage/agentInfo/resetPwd';
            var dataParam={
                'sysAccount': sysAccount
            };

            $.ajax({
                type: "post",     //提交方式
                //contentType:"application/json;charset=utf-8",   //内容类型
                // dataType: "json",     //类型
                url : url,
                data : dataParam,
                beforeSend : function(XMLHttpRequest) {},
                success : function(data) {
                    $.messager.alert(
                        "提示信息",
                        data.msg);
                },
                error : function(data) {
                    // 请求出错处理
                    $.messager.alert(
                        "提示信息",
                        data.msg);
                }
            });

        }
    })
}
